package com.cmower.baeldung.basic;

/**
 * @author 沉默王二，一枚有趣的程序员
 */
public class PrimitiveOverFlowDemo {
    public static void main(String ... args) {
        int i_max = Integer.MAX_VALUE;
        int become_min = i_max + 1;
        System.out.println("int 最大值：" + i_max);
        System.out.println("int 最小值：" + Integer.MIN_VALUE);
        System.out.println("+1 变最小值：" + become_min);

        double d_max = Double.MAX_VALUE;
        double still_max = d_max + 1;
        System.out.println("double 最大值：" + d_max);
        System.out.println("+1 仍然是最大值：" + still_max);
    }
}
